#include <stdio.h>
#include "library.h"

int sum(int amount[], int n)
{
    int total = 0;
    for (int i = 0; i < n; i++) 
    {
        total += amount[i];
    }
    return total;
}